package com.hlhj.carview.bean;

import java.util.List;

/**
 * Created by Never Fear   on 2019\1\11 0011.
 * Never More....
 */

public class AdvListBean {

    /**
     * code : 1
     * msg : 操作成功！
     * info : {"current_page":1,"data":[{"record_id":1,"advertising_id":1,"advertising_name":"测试广告","type":"1","cover":"url2","url":"url","advertiser":"广告商1","play_time":"4000"},{"record_id":3,"advertising_id":2,"advertising_name":"测试广告","type":"1","cover":null,"url":"url","advertiser":"代理商1","play_time":"1500"}],"first_page_url":"http://advertisement.com/api/member/advertisement?page=1","from":1,"last_page":1,"last_page_url":"http://advertisement.com/api/member/advertisement?page=1","next_page_url":null,"path":"http://advertisement.com/api/member/advertisement","per_page":"10","prev_page_url":null,"to":2,"total":2}
     */

    private int code;
    private String msg;
    private InfoBean info;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public InfoBean getInfo() {
        return info;
    }

    public void setInfo(InfoBean info) {
        this.info = info;
    }

    public static class InfoBean {
        /**
         * current_page : 1
         * data : [{"record_id":1,"advertising_id":1,"advertising_name":"测试广告","type":"1","cover":"url2","url":"url","advertiser":"广告商1","play_time":"4000"},{"record_id":3,"advertising_id":2,"advertising_name":"测试广告","type":"1","cover":null,"url":"url","advertiser":"代理商1","play_time":"1500"}]
         * first_page_url : http://advertisement.com/api/member/advertisement?page=1
         * from : 1
         * last_page : 1
         * last_page_url : http://advertisement.com/api/member/advertisement?page=1
         * next_page_url : null
         * path : http://advertisement.com/api/member/advertisement
         * per_page : 10
         * prev_page_url : null
         * to : 2
         * total : 2
         */

        private int current_page;
        private String first_page_url;
        private int from;
        private int last_page;
        private String last_page_url;
        private Object next_page_url;
        private String path;
        private String per_page;
        private Object prev_page_url;
        private int to;
        private int total;
        private List<DataBean> data;

        public int getCurrent_page() {
            return current_page;
        }

        public void setCurrent_page(int current_page) {
            this.current_page = current_page;
        }

        public String getFirst_page_url() {
            return first_page_url;
        }

        public void setFirst_page_url(String first_page_url) {
            this.first_page_url = first_page_url;
        }

        public int getFrom() {
            return from;
        }

        public void setFrom(int from) {
            this.from = from;
        }

        public int getLast_page() {
            return last_page;
        }

        public void setLast_page(int last_page) {
            this.last_page = last_page;
        }

        public String getLast_page_url() {
            return last_page_url;
        }

        public void setLast_page_url(String last_page_url) {
            this.last_page_url = last_page_url;
        }

        public Object getNext_page_url() {
            return next_page_url;
        }

        public void setNext_page_url(Object next_page_url) {
            this.next_page_url = next_page_url;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }

        public String getPer_page() {
            return per_page;
        }

        public void setPer_page(String per_page) {
            this.per_page = per_page;
        }

        public Object getPrev_page_url() {
            return prev_page_url;
        }

        public void setPrev_page_url(Object prev_page_url) {
            this.prev_page_url = prev_page_url;
        }

        public int getTo() {
            return to;
        }

        public void setTo(int to) {
            this.to = to;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * record_id : 1
             * advertising_id : 1
             * advertising_name : 测试广告
             * type : 1
             * cover : url2
             * url : url
             * advertiser : 广告商1
             * play_time : 4000
             */

            private int record_id;
            private int advertising_id;
            private String advertising_name;
            private String type;
            private String cover;
            private String url;
            private String advertiser;
            private String play_time;

            public int getRecord_id() {
                return record_id;
            }

            public void setRecord_id(int record_id) {
                this.record_id = record_id;
            }

            public int getAdvertising_id() {
                return advertising_id;
            }

            public void setAdvertising_id(int advertising_id) {
                this.advertising_id = advertising_id;
            }

            public String getAdvertising_name() {
                return advertising_name;
            }

            public void setAdvertising_name(String advertising_name) {
                this.advertising_name = advertising_name;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getCover() {
                return cover;
            }

            public void setCover(String cover) {
                this.cover = cover;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public String getAdvertiser() {
                return advertiser;
            }

            public void setAdvertiser(String advertiser) {
                this.advertiser = advertiser;
            }

            public String getPlay_time() {
                return play_time;
            }

            public void setPlay_time(String play_time) {
                this.play_time = play_time;
            }
        }
    }
}
